/*
 * --------------------------------------------------------------
 * Copyright ©  2015 Hangzhou DtDream Technologies Co.,Ltd.
 * --------------------------------------------------------------
 *      Product: 协同数治
 *  Module Name: design
 * Date Created: 2023/2/24
 *  Description: TODO
 * --------------------------------------------------------------
 * Modification History
 * DATE            NAME            Description
 * --------------------------------------------------------------
 * 2023/2/24       yewj            TODO
 * --------------------------------------------------------------
 */

package com.dtdream.pattern.visitor;

/**
 * TODO
 *
 * @Author: yewj
 **/
public class Client {
    public static void main(String[] args) {
        ObjectStructure os = new ObjectStructure();

        os.attach(new Man());
        os.attach(new Woman());
        os.attach(new Man());

        Success success = new Success();
        os.display(success);

        System.out.println("=========================");

        Fail fail = new Fail();
        os.display(fail);
    }
}
